export default {
  name: "invoice",
  components: {
    tab: () => import("../../component/tab/index.vue"),
    dedicated: () => import("./dedicated/index.vue"),
    ordinary: () => import("./ordinary/index.vue")
  },
  data() {
    return {
      options: [],
      type: "0",
      title: "专用发票",
      total: 0
    };
  },
  created () {
    let index = this.GLOBAL.permisstions.findIndex(item=>item.power === '9');
    this.options = this.GLOBAL.permisstions[index].tablelist;
    this.options.forEach((el, index) => {
      this.$set(el, 'val', index + '');
    });
	this.$set(this.options[0],'totalNum',0);
  },
  methods: {
    handleClick(item) {
      this.type = item.val;
      this.title = item.tablename;
    }
  }
};